<div class="layui-container">
    <div class="layui-row">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
			<div class="widget-head">
				<div class="widget-title">申请代理列表</div>
			</div>
			<div class="layui-col-md12 layui-col-xs12 widget-body ">
				<div class="layui-form-item">
					<form class="layui-form" method="post" action="">
						<input type="hidden" name="s" value="/{$request->pathinfo()}">
					</form>
				</div>

				<div class="layui-col-md12" >
					<table width="100%" class="layui-table">
						<thead>
						<tr>
							<th>ID</th>
							<th>姓名</th>
							<th>地址</th>
							<th>代理类型</th>
							<th>申请时间</th>
							<th width="20%">备注</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						{if count($list)>0}{foreach $list_copy['data'] as $item}
							<tr>
								<td>{$item['merchant_daili_id']}</td>
								<td>{$item['daili_name']}</td>
								<td>{$item['provincename']}{$item['cityname']}{$item['districtname']}</td>
								<td>{$item['dailiname']}</td>
								<td>{:date('Y-m-d H:i',$item['create_time'])}</td>
								<td>{$item['beizhu']}</td>
								<td>
									<div class="tpl-table-black-operation">
										<a href="javascript:;" class="item-delete tpl-table-black-operation-del"
										   data-id="{$item['merchant_daili_id']}">
											<i class="mdi menu-icon mdi-delete-forever"></i> 删除
										</a>
										<a href="{:url('setup/dailiEdit',
											['merchant_daili_id' => $item['setup_daili_id']])}">
											<i class="mdi menu-icon mdi-pencil"></i> 查看
										</a>
									</div>
								</td>
							</tr>
							{/foreach}{else/}
							<tr>
								<td colspan="12" class="layer-text-center">暂无记录</td>
							</tr>
						{/if}
						</tbody>
					</table>
				</div>
				<div class="layui-col-lg12">
					<div class="layui-fr">{$list|raw}</div>
					<div class="layui-fr pagination-total layer-margin-right">
						<div class="layer-vertical-align-middle">总记录：{$list->total()}</div>
					</div>
				</div>
			</div>
        </div>
    </div>
</div>
<script>
    $(function () {
        // 删除元素
        $('.item-delete').delete('id', "{:url('setup/dailiDel')}",'','Item');

    });

</script>

